home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex / base / Makefile.unx < prev    next >
Makefile  |  1994-12-17  |  1KB  |  57 lines

  1.  
  2. ########################################################################
  3. #   Start of customization section
  4. ########################################################################
  5.  
  6. # The directory where all runtime files reside
  7. DESTDIR=
  8.  
  9. # The directory where the format files reside
  10. FORMATDIR=
  11.  
  12. ######### Edit the following only if you want to move *.fd or *.ist
  13. ######### to a different place.
  14.  
  15. # The directory where the .fd files reside:
  16. FDDIR=$(DESTDIR)
  17.  
  18. # The directory where class and package files reside:
  19. INPUTDIR=$(DESTDIR)
  20.  
  21. # The directory where the makeindex style files reside
  22. ISTDIR=$(DESTDIR)
  23.  
  24. ########################################################################
  25. #   End of customization section
  26. ########################################################################
  27.  
  28. FORMAT=latex
  29.  
  30.  
  31. default:
  32.     @if test ! "${DESTDIR}" -o ! "$(FORMATDIR)" ; then \
  33.       echo "Destination directories not set." ; \
  34.       echo "Please edit the Makefile first!" ; \
  35.       exit 1 ; \
  36.     else \
  37.       make format ; \
  38.     fi
  39.  
  40.  
  41. format:    $(FORMAT).fmt
  42.  
  43. $(FORMAT).fmt:    $(FORMAT).ltx
  44.     initex $(FORMAT).ltx
  45.  
  46.  
  47. install: $(FORMAT).fmt
  48.     cp -i $(FORMAT).fmt $(FORMATDIR)
  49.     cp -i *.fd $(FDDIR)
  50.     cp -i *.cls *.clo *.sty *.def *.tex $(INPUTDIR)
  51.     cp -i *.ist $(ISTDIR)
  52.  
  53. clean:
  54.     rm $(FORMAT).fmt
  55.     rm *.dvi *.log *.aux *.glo *.idx *.ind *.gls *.lof *.lot *.toc
  56.  
  57.